/**
 * 
 */
package com.ms.service.module.baccarat;

import com.xpec.c4.service.module.task.TaskTimer;

/**
 * 等待一段時間再儲存機台資料
 * 
 * @author TW15010
 */
public class BacrSaveGameDataTimerTask extends TaskTimer {
	/**
	 * 遊戲 processor
	 */
	private BacrProcessor proc;

	/**
	 * 遊戲核心
	 */
	private BacrGameCore core;

	@Override
	public void execute() throws Exception {
		if (proc == null) {
			return;
		}

		if (core == null) {
			return;
		}

		proc.onTimerTriggerSaveGameData(core);
	}

	public BacrGameCore getCore() {
		return core;
	}

	public void setCore(BacrGameCore core) {
		this.core = core;
	}

	public BacrProcessor getProc() {
		return proc;
	}

	public void setProc(BacrProcessor proc) {
		this.proc = proc;
	}
}
